package com.gec.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.util.Date;

@Data
//@TableName("th_user")
public class User {
   @TableId(value = "id",type = IdType.AUTO)
    private Long id;
    @TableField(value = "user_name")
    private String name;
    private Integer age;
    private String email;
    @TableLogic
    private Integer userDelete;
 // 添加的时候 自动 填充
 // 创建时间
 @TableField(fill = FieldFill.INSERT)
 private Date createTime;

 @TableField(fill = FieldFill.INSERT_UPDATE)
 // 修改时间
 private Date updateTime;
}